#ifndef __DBFUNC_H__
#define __DBFUNC_H__

#define DB_OK                   0
#define DB_NOTFOUND             1403
#define DB_KEYDUPLICATE         -1
#define DB_DBSFUNCERR           543

#define DBS_SELECT     1
#define DBS_LOCK       2
#define DBS_UPDATE     3
#define DBS_INSERT     4
#define DBS_DELETE     5
#define DBS_INIT       6

#define DBS_OPEN       10   /* include DECLARE and OPEN */
#define DBS_FETCH      11
#define DBS_CLOSE      12

typedef struct
{
	double			no;
	char			upd_ts[15];
	char			name[21];
	char			duty[2];
	int			age;
	double			salary;
} emp_t;

#endif
